<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../assets/js/vue.js"></script>
    <link rel="stylesheet" href="../assets/css/base.css">
    <link rel="stylesheet" href="../assets/font/iconfont.css">
    <style>
        .container{
            width: 400px;
            font-size: 20px;
            color: white;
            border-radius: 10px;
            background-color: #3498da;
        }
        .nav-title{
            border-bottom: 1px solid #67aedc;
            padding: 16px;
        }
    </style>
</head>
<body>
    <div id="app">
        <div class="container">
            <div class="item" v-for="item in menu">
                <div class="nav-title">
                    <i class="iconfont" :class="item.icon"></i>
                    <span>{{ item.title }}</span>
                </div>
                <div class="nav-body">
                    <div></div>
                </div>
            </div>
        </div>
    </div>
    <script>
        new Vue({
            el:"#app",
            data:{
                   menu:[
                       {icon:"icon-account-fill",title:"我的",sub:[{title:"发布"},{title:"图片"}]},
                       {icon:"icon-email-fill",title:"邮件",sub:[{title:"写邮件"},{title:"发邮件"},{title:"草稿箱"},{title:"垃圾箱"}]},
                       {icon:"icon-set",title:"设置",sub:[{title:"密码"},{title:"语音"}]},
                       {icon:"icon-Rightbutton-fill",title:"注销"}
                   ] 
            },
            methods: {
                
            },
        })
    </script>
</body>
</html>